package org.mzx.shortLink.work.domain.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.mzx.shortLink.work.domain.entity.TLink;
import org.mzx.shortLink.work.dto.Request.ShortLinkRecycleBinPageReqDTO;
import org.mzx.shortLink.work.dto.Request.TLinkCountDtoReq;
import org.mzx.shortLink.work.dto.Response.TLinkPageDtoResp;


import java.sql.Date;
import java.util.List;
import java.util.Map;

/**
* @author mazhenxi
* @description 针对表【t_link】的数据库操作Mapper
* @createDate 2024-11-27 17:46:02
* @Entity org.mzx.shortLink.adminn.domain.entity.TLink
*/
public interface TLinkMapper extends BaseMapper<TLink> {

    @MapKey("gid")
    Map<String, Map<String,Object>> Count(@Param("requestParam") List<TLinkCountDtoReq> requestParam);

    IPage<TLinkPageDtoResp> getByPage(@Param("gid") String gid, Page<TLink> pageType, @Param("orderTag") String orderTag, @Param("date")Date date);

    IPage<TLinkPageDtoResp> pageRecycleBinLink(ShortLinkRecycleBinPageReqDTO requestParam);
}




